This repository was archived by the owner on Aug 28, 2025. It is now read-only.
增加关卡额外数据记录集,修正boss击破时间记录值 #48
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new system for managing extra stage data in the game, along with enhancements to the replay system to support storing and retrieving this data. The changes include the addition of a new module
ext_stage_data.lua, modifications to existing replay and stage management functions, and integration of the new system into the game's workflow.New system for managing extra stage data:
game/packages/thlib-scripts/THlib/ext/ext_stage_data.lua: Added a new moduleext.stage_datato handle extra stage data, including methods for setting, retrieving, initializing, serializing, and preparing stage data. This module ensures type validation for keys and values and prevents data modification during replay mode.Replay system enhancements:
game/packages/thlib-scripts/THlib/ext/ext_replay.lua: UpdatedSaveReplayto store serialized stage data in thegameExtendInfofield and added logic instage.Setto prepare stage data from replay files when available. [1] [2] [3] [4]Integration of extra stage data into the game workflow:
game/packages/thlib-scripts/THlib/ext/ext.lua: Integrated the newext.stage_datamodule into the game by loading it in the initialization script and callingInitStageDataduring stage transitions. [1] [2]Additional changes:
game/packages/thlib-scripts/THlib/enemy/boss_system.lua: Added logic to record and retrieve boss timer data using the newext.stage_datasystem, ensuring compatibility with replay mode.